From c15c303a405f2e2453ecdf81908f962a7769d924 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 31 Mar 2007 16:39:14 +0100 Subject: [PATCH] linux gntdev: Mark x86-specific code as such with ifdef. Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c b/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c index fe1e98b2f1..8716e8aa55 100644 --- a/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c +++ b/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c @@ -518,12 +518,14 @@ static int gntdev_mmap (struct file *flip, struct vm_area_struct *vma) */ vma->vm_flags |= VM_DONTCOPY; +#ifdef CONFIG_X86 /* This flag ensures that the page tables are not unpinned before the * VM area is unmapped. Therefore Xen still recognises the PTE as * belonging to an L1 pagetable, and the grant unmap operation will * succeed, even if the process does not exit cleanly. */ vma->vm_mm->context.has_foreign_mappings = 1; +#endif for (i = 0; i < size; ++i) { -- 2.30.2